﻿#Region "Using Directives"
Imports System
Imports System.Collections.Generic
Imports System.Text
#End Region

Namespace C4F.DevKit.Bluetooth


    Namespace ServiceAndDeviceDiscovery



        ''' <summary>
        ''' Represents the BTH_SET_SERVICE structure.
        ''' </summary>
        <System.Runtime.InteropServices.StructLayout(System.Runtime. _
                                                     InteropServices.LayoutKind.Sequential)> _
        Public Structure BthSetService

            ''' <summary>
            ''' Represents the version of SDP.
            ''' </summary>
            Public SdpVersion As IntPtr

            ''' <summary>
            '''Represents the handle to the SDP record.
            ''' </summary>
            Public RecordHandle As IntPtr

            ''' <summary>
            ''' Represents the Class of device (COD) information.
            ''' </summary>
            Public CodService As UInteger

            ''' <summary>
            ''' Reserved.
            ''' </summary>
            <System.Runtime.InteropServices.MarshalAs(System.Runtime. _
                                                    InteropServices.UnmanagedType.ByValArray, _
                                                     SizeConst:=5)> _
            Public Reserved() As UInteger

            ''' <summary>
            ''' Represents the Size, in bytes, of pRecord.
            ''' </summary>
            Public RecordLength As UInteger

            ''' <summary>
            ''' Represents the SDP record. Maximum size permitted is 126.
            ''' </summary>
            <System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices. _
                                                      UnmanagedType.ByValArray, _
                                                      SizeConst:=126)> _
            Public Record() As Byte

        End Structure

    End Namespace
End Namespace
